package com.quanquan.store.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @ClassName:BannerType
 * @Description:广告位实体
 * @Author:xiongjunbao
 * @Date:2019/3/13 17:58
 * @Version 1.0
 */
@Data
@Entity
@Table(name = "oo_adsence")
public class Adsence implements Serializable {

    @Id
    @Column(name = "id", unique = true, length = 64)
    private String id;
    @Column(name = "create_time", length = 32)
    private String createTime;
    @Column(name = "update_time", length = 32)
    private String updateTime;
    @Column(name = "status_show", nullable = false, columnDefinition = "TINYINT default 0")
    private Integer statusShow;
    @Column(name = "status_remove", nullable = false, columnDefinition = "TINYINT default 0")
    private Integer statusRemove;
    /**
     * 广告位 1首页banner
     */
    @Column(name = "banner_type", columnDefinition = "TINYINT default 0")
    private Integer bannerType;
    /**
     * 广告位名称
     */
    @Column(name = "name",length = 64)
    private String name;
    /**
     * 广告位编号
     */
    @Column(name = "number",length = 64)
    private String number;
    /**
     * 广告位规格
     */
    @Column(name = "standard",length = 64)
    private String standard;
    /**
     * 广告位格式要求
     */
    @Column(name = "pattern",length = 64)
    private String pattern;
    /**
     * 广告位展现方式 0-默认不动 1-滚动 2-滑动
     */
    @Column(name = "show_type", columnDefinition = "TINYINT default 0")
    private Integer showType;
    /**
     * show_type为滚动时，广告位展现时间
     */
    @Column(name = "show_time", columnDefinition = "TINYINT default 2")
    private Integer showTime;
    /**
     * 广告位状态 0下架 1上架
     */
    @Column(name = "status",length = 64)
    private String status;
    /**
     * 是否开启超链接 0-开启，1关闭
     */
    @Column(name = "status_url", columnDefinition = "TINYINT default 0")
    private Integer statusUrl;
}
